import service from "@/utils/request";

export function useGeofenceAllApi() {
    return service.get("/gps/geofence")
}

export function useGeofenceSaveApi(data) {
    if (data.id) {
        return service.put('/gps/geofence', data)
    } else {
        return service.post('/gps/geofence', data)
    }
}

export function useDelGeofenceApi(id: string) {
    return service.delete("/gps/geofence/" + id)
}
